<?php get_header(); ?>
<div class="left-main large-8 medium-8 columns no-padding">
    <div class="row">
        <h3>新着情報</h3>
    </div>
    <div class="news-update row">
    <?php foreach((get_the_category()) as $category){ ?>    
    <?php
        $args = array(
                    'orderby'           => 'date',
                    'paged'             => get_query_var( 'paged' ),
                    'order'             => 'DESC',
                    'cat'               => $category->cat_ID,
                    'posts_per_page'    => 5
                );     
        $wp_query = new WP_Query($args);
        
    ?>
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>    
        <div class="border-news row">
            <div class="row news">
                <?php if(has_post_thumbnail()) {?>
                <div class="large-3 medium-3 small-4 columns left-news no-padding">
                    <div class="left-image">
                        <a target="_blank" href="<?php the_permalink();?>">
                            <?php the_post_thumbnail('content_home_thumb');?>
                        </a>
                    </div>
                </div>
                <?php } ?>
                <div class="large-9 medium-9 small-8 columns right-news">
                    <h3><a target="_blank" href="<?php the_permalink();?>"><?php the_title(); ?></a></h3>

                    <?php the_content();?>
                    <?php echo really_simple_share_publish($link='', $title=''); ?><span><?php the_category();?></span>
                </div>
            </div>
        </div><!-----------end border-news-------------------->
        
    <?php endwhile; ?>
    <?php } ?>
    </div>
    <div class="read-more row content-more">
        <a>もっと見る  </a>
    </div>
</div><!-----------end left-main------------>

<?php get_sidebar(); ?>
<?php get_footer(); ?> 